#include <iostream>

using namespace std;

int main()
{
    int A,B,C;
    cin >>A;
    cin >>B;
    cin >>C;


    if ( ((A<B) and (B<C)) or ((A<B) and (B<C)) )

     { printf("true");

    }
    else
      printf("false");


    return 0;
}
